package com.sskj.trafficcontrol.service.impl;

import com.sskj.trafficcontrol.dao.TcUserOpenidDAO;
import com.sskj.trafficcontrol.model.pojo.TcUserOpenId;
import com.sskj.trafficcontrol.service.UserOpenidService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service(value = "userOpenidService")
public class UserOpenidServiceImpl implements UserOpenidService {

    @Autowired
    private TcUserOpenidDAO tcUserOpenidDAO;

    @Override
    public void registUser(String openid, String inviCodeOPenId) {
        //用户注册
        tcUserOpenidDAO.registUser(openid,inviCodeOPenId);
    }

    @Override
    public TcUserOpenId getOpenId(String openid) {
        return tcUserOpenidDAO.getOpenId(openid);
    }
}
